package com.ruoyi.project.system.manager.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 公告管理Entity
 * @author LHF
 */
public class Manager implements Serializable {

    private static final long serialVersionUID = -8191835339178202652L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 公告标题
     */
    private String title;

    /**
     * 发布人
     */
    private String browsePeople;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeStart;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeEnd;

    /**
     * 内容
     */
    private String content;

    /**
     * 公告类别id  （关联）
     */
    private Integer parentId;

    public Manager(){}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBrowsePeople() {
        return browsePeople;
    }

    public void setBrowsePeople(String browsePeople) {
        this.browsePeople = browsePeople;
    }

    public Date getTimeStart() {
        return timeStart;
    }

    public void setTimeStart(Date timeStart) {
        this.timeStart = timeStart;
    }

    public Date getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(Date timeEnd) {
        this.timeEnd = timeEnd;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "Manager{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", browsePeople='" + browsePeople + '\'' +
                ", timeStart=" + timeStart +
                ", timeEnd=" + timeEnd +
                ", content='" + content + '\'' +
                ", parentId=" + parentId +
                '}';
    }
}
